Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gemoji

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gemoji

GitHub emoji: gemoji

  • 7.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74K
increased by18.18%
Maintainers
1
Weekly downloads
 
Created
Source

gemoji

Build Coverage Downloads Size

Info on gemoji.

Contents

What is this?

This package contains info on gemoji (GitHub Emoji). Gemoji are the shortcodes that GitHub uses to represent emoji. For example, :grinning: can be used for 😀.

When should I use this?

Use this package if you need:

  • info on gemoji, such as associated tags, description, and category
  • to map between emoji and names and vice versa
  • to list emoji or names

Install

This package is ESM only. In Node.js (version 12.20+, 14.14+, or 16.0+), install with npm:

npm install gemoji

In Deno with Skypack:

import {gemoji} from 'https://cdn.skypack.dev/gemoji@7?dts'

In browsers with Skypack:

<script type="module">
  import {gemoji} from 'https://cdn.skypack.dev/gemoji@7?min'
</script>

Use

See examples below.

API

This package exports the following identifiers: gemoji, nameToEmoji, emojiToName. There is no default export.

gemoji

List of info objects (Array<Gemoji>). Each Gemoji has the following fields:

  • emoji (string) — example: 😀
  • names (Array<string>) — example: ['grinning']
  • tags (Array<string>) — example: ['smile', 'happy']
  • description (string) — example: grinning face
  • category (string) — example: Smileys & Emotion
Example
import {gemoji} from 'gemoji'

console.log(gemoji)

Yields:

[
  {
    emoji: '😀',
    names: ['grinning'],
    tags: ['smile', 'happy'],
    description: 'grinning face',
    category: 'Smileys & Emotion'
  },
  {
    emoji: '😃',
    names: ['smiley'],
    tags: ['happy', 'joy', 'haha'],
    description: 'grinning face with big eyes',
    category: 'Smileys & Emotion'
  },
  {
    emoji: '😄',
    names: ['smile'],
    tags: ['happy', 'joy', 'laugh', 'pleased'],
    description: 'grinning face with smiling eyes',
    category: 'Smileys & Emotion'
  },
  // …
]

nameToEmoji

Map of names (100) to emoji (💯) (Record<string, string>).

Example
import {nameToEmoji} from 'gemoji'

console.log(nameToEmoji.cat) //=> 🐱
console.log(nameToEmoji.poop) //=> 💩

emojiToName

Map of emoji (😀) to names (grinning) (Record<string, string>).

Example
import {emojiToName} from 'gemoji'

console.log(emojiToName['🐶']) //=> dog
console.log(emojiToName['\uD83D\uDCA9']) //=> hankey

Types

This package is fully typed with TypeScript. It exports an additional Gemoji type that models its respective interface.

List of gemoji

See support.md.

Data

The emoji list is crawled from github/gemoji and later processed for relevant information. See its license for more information.

No images are included in this repository: the copyrighted material may or may not be available on the users computer.

Compatibility

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers.

Security

This package is safe.

Contribute

Yes please! See How to Contribute to Open Source.

Disclaimer

wooorm/gemoji is not affiliated with GitHub.

License

MIT © Titus Wormer

Keywords

FAQs

Package last updated on 05 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc